using Cinch;
using System;
using System.ComponentModel;
using System.ComponentModel.Composition;
using System.Windows;
using System.Windows.Controls;
using SLS.Base;
using SLS.ExClassLib.Events;
using SLS.ExClassLib.Loc;
namespace SLS.Presentation
{
    /// <summary>
    /// 2012/10/6 18:14:54
    /// </summary>
    [ViewnameToViewLookupKeyMetadata("DetailGTAR", typeof(DetailGTAR))]
    public partial class DetailGTAR : ExDETAIL
    {
        [Import("GTARLocalizationModel", typeof(ILocalizationModel))]
        public override ILocalizationModel LocalizationModel
        {
            get { return base.LocalizationModel; }
            set { base.LocalizationModel = value; }
        }           
        public DetailGTAR()
        {
            InitializeComponent();
            if (DesignerProperties.GetIsInDesignMode(this as DependencyObject))
            {
                return;
            } 
            Address = " DetailGTAR" + "#" + Guid.NewGuid().ToString().ToUpper();   
            BaseTable = "GTAR";  
        }   
        public override void OnDropDownOpened(object sender, EventArgs e)
        {
            base.OnDropDownOpened(sender, e);
        }   
        public override void SLBC_Loaded(object sender, RoutedEventArgs e)
        {
            base.SLBC_Loaded(sender, e);
            try
            {
                if (NMICD != null)
                {
                    NMICD.CMDEXE.TextChanged += new TextChangedEventHandler(CMDEXE_TextChanged);
                } 
            }
            catch (Exception ex)
            {
                Tracer.Error(ex.StackTrace, ex);
            }
        }
    }
} 
 
